from django.conf.urls import patterns, url

from publications import views

urlpatterns = patterns('',
    # ex: /authors/
    url(r'^$', views.authorIndex, name='authorIndex'),
    
    #Uncomment the first line and comment the 2-4 line above to get a more
    #general way to refer to a specific department
    #url(r'^(?P<department>[a-zA-Z]{3,5})/$', views.authorIndex, name='authorIndex'),
    url(r'^(?P<department>DIA)/$', views.authorIndex, name='authorIndex'),
    url(r'^(?P<department>DATSI)/$', views.authorIndex, name='authorIndex'),
    url(r'^(?P<department>DLSIIS)/$', views.authorIndex, name='authorIndex'),
    
    # ex: /authors/5/
    url(r'^(?P<author_id>\d+)/$', views.authorDetails, name='authorDetails'),
    
    
    # ex: /publications/5/
    #url(r'publication/(?P<publication_id>\d+)/$', views.publicationDetails, name='publicationDetails'),
    # ex: /polls/5/results/
    #url(r'^(?P<poll_id>\d+)/results/$', views.results, name='results'),
    # ex: /polls/5/vote/
    #url(r'^(?P<poll_id>\d+)/vote/$', views.vote, name='vote'),
)